#pragma once
#include <iostream>
class Glosa
{
private:
	int id;
	string WordToTranslate;
	string CorrectTranslate;

public:

	Glosa()
	{
		id = -1;
		WordToTranslate = " ";
		CorrectTranslate = " ";
	}

	Glosa(int id, string WordToTranslate, string CorrectTranslate)
	{
		this->id = id;
		this->WordToTranslate = WordToTranslate;
		this->CorrectTranslate = CorrectTranslate;
	}

	friend istream& operator>>(istream &in, Glosa& Glosa)
	{
		string s;
		getline(in, s, '(');
		getline(in, s, ',');
		istringstream iss(s);
		iss >> Glosa.id;
		getline(in, Glosa.WordToTranslate, ',');
		getline(in, Glosa.CorrectTranslate, ')');	
		return in;
	}


	int GetID() { return id; }
	string GetWordToTranslate() { return WordToTranslate; }
	string GetCorrectTranslate() { return CorrectTranslate; }



	~Glosa()
	{
	}
};

